/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.model;

/**
 *
 * @author admin
 */
public class Login {
    private String Username;
    private String password;

    /**
     * @return the Username
     */
    public String getUsername() {
        return Username;
    }

    /**
     * @param Username the Username to set
     */
    public void setUsername(String Username) {
        this.Username = Username;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }
    
    public boolean loginAdmin(String userName, String password) {

        if (userName == null || password == null
                || !(userName.equals("operator") && password.equals("abcdef")) && !(userName.equals("manager") && password.equals("123456")) ) {
            System.out.println("data yang dimasukkan salah");
            return false;
            
        } else {
            System.out.println("Data yang dimasukkan benar");
            return true;
        }
    }
}
